import request from '@utils/request'

export default class News {
  async getLists(data) {
    return request({
      url: '/news-server/news/getNewsPage',
      method: 'post',
      data
    })
  }

  async add(data) {
    return request({
      url: '/news-server/news/insertNewsInfo',
      method: 'post',
      data
    })
  }

  async edit(data) {
    return request({
      url: '/news-server/news/updateNewsInfo',
      method: 'post',
      data
    })
  }

  async changeStatus(data) {
    return request({
      url: '/news-server/news/changeStatus',
      method: 'post',
      data
    })
  }
}
